<template>
	<view class="no-data">
		<view class="no-data__box">
			<view class="no-data__box--icon">
				<image class="no-data__box--icon-image" :src="img" mode=""></image>
			</view>
			<view class="no-data__box--content">
				<text class="no-data__box--content-text">{{text}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	import img from '@/static/theme/default/no-data.png'
	
	export default {
		data() {
			return {
				img
			}
		},
		props: {
			text: {
				type: String,
				default: '暂无数据＞﹏＜'
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	.no-data {
		padding: 20rpx;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: #fff;
		
		&__box {
			height: 400rpx;
			text-align: center;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			
			&--icon {
				width: 250rpx;
				height: 250rpx;
				border-radius: 250rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				background-color: #eee;
				
				&-image {
					width: 160rpx;
					height: 160rpx;
				}
			}
			
			&--content {
				height: 100rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				
				&-text {
					font-size: 30rpx;
					color: #aaa;
				}
			}
		}
	}
</style>
